package com.mikhailenko.transportMVC.service;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.TermNotFoundExeption;
import com.mikhailenko.transportMVC.model.Term;

public interface TermService {
	public Term create(Term term);

	public Term delete(int id) throws TermNotFoundExeption;

	public List<Term> findAll();

	public Term update(Term term) throws TermNotFoundExeption;

	public Term findById(int id);
	
	public Term findbyName(String name);
}
